package com.canto.wanna.user.services.impl;

import com.canto.common.services.DataService;
import com.canto.wanna.user.dao.UserRoleRelationDao;
import com.canto.wanna.user.pojo.doo.ResourceDO;
import com.canto.wanna.user.pojo.doo.UserRoleRelationDO;
import com.canto.wanna.user.pojo.entity.UserRoleRelation;
import com.canto.wanna.user.pojo.query.UserRoleRelationQuery;
import com.canto.wanna.user.services.UserRoleRelationService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 用户和角色关系Impl
 *
 * @Author jsryin
 * @Date 2021/7/31 14:40
 */
@Service
@Transactional(readOnly = true)
public class UserRoleRelationServiceImpl extends DataService<UserRoleRelationDao> implements UserRoleRelationService {

    @Override
    public UserRoleRelationDO get(UserRoleRelationQuery query) {
        return super.get(query);
    }

    @Override
    public List<UserRoleRelationDO> findList(UserRoleRelationQuery query) {
        return super.findList(query);
    }

    @Override
    public long save(UserRoleRelation userRoleRelation) {
        return super.save(userRoleRelation);
    }

    @Override
    public long delete(UserRoleRelation userRoleRelation) {
        return super.delete(userRoleRelation);
    }

    @Override
    public List<ResourceDO> findResourceList(UserRoleRelationQuery query) {
        return dao.findResourceList(query);
    }

}
